package cn.service;

import java.util.List;

import cn.dao.ScoreDao;
import cn.dao.ScoreDaoImpl;
import cn.pojo.Score;
import cn.util.DBUtil;

public class ScoreServiceImpl extends DBUtil implements ScoreService {
	private ScoreDao scoreDao = new ScoreDaoImpl();

	@Override
	public Integer addScore(Score score) {
		return scoreDao.addScore(score);
	}

	@Override
	public List<Score> getScoreByMid(Integer mid) {
		return scoreDao.getScoreByMid(mid);
	}
}
